home *** CD-ROM | disk | FTP | other *** search
- Path: rcp6.elan.af.mil!rscernix!danpop
- From: danpop@mail.cern.ch (Dan Pop)
- Newsgroups: comp.lang.c
- Subject: Re: Invalid Indirection???
- Date: 15 Mar 96 18:53:36 GMT
- Organization: CERN European Lab for Particle Physics
- Message-ID: <danpop.826916016@rscernix>
- References: <4i7cck$t67@infa.central.susx.ac.uk> <4iah9k$r02@newshost.cyberramp.net>
- NNTP-Posting-Host: ues5.cern.ch
- X-Newsreader: NN version 6.5.0 #7 (NOV)
-
- In <4iah9k$r02@newshost.cyberramp.net> sinan@cyberramp.net (John Noland) writes:
-
- >In article <4i7cck$t67@infa.central.susx.ac.uk>, taux5@central.susx.ac.uk says...
- >>
- >> tmp = (tempi[i]*tempj[i])+(tempi[i+1]*tempj[i+1]));
- >>
- >>/* This is where the compiler stops and says there's an invalid
- >>indirection for the "tmp" assignment */
- >
- >To multiply, you need whitespace.
-
- Is this supposed to be the joke of the week???
-
- >Check the lexical conventions for the
- >evaluation of tokens for your compiler to be certain, but it looks like
- >you've confused him.
-
- If I were you, I wouldn't talk about confusion :-)
-
- The conventions are defined by the language, not by the compiler.
- There is absolutely nothing implementation-defined here.
-
- >Your statement should like this (underscores indicate spaces):
- >
- >tmp = ((tempi[i]_*_tempj[i]) + (tempi[i+1]_*_tempj[i+1]))
-
- Can you say BULLSHIT?
-
- Please refrain from talking about topics you obviously don't understand.
- Keep your confusion for you, there is no need to spread it in c.l.c.
-
- For the "innocent" readers: those spaces don't make ANY difference.
- They improve the readability for the humans, but are irrelevant to the
- compilers, because neither ]* nor *temp are valid tokens. Ditto for
- )+, +( or )+(.
-
- BTW, the "improved" statement contains too many parentheses and too few
- semicolons :-)
-
- Dan
- --
- Dan Pop
- CERN, CN Division
- Email: danpop@mail.cern.ch
- Mail: CERN - PPE, Bat. 31 R-004, CH-1211 Geneve 23, Switzerland
-